<?php
/**
 * Faett_Piwik
 *
 * NOTICE OF LICENSE
 * 
 * Faett_Piwik is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Faett_Piwik is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Faett_Piwik.  If not, see <http://www.gnu.org/licenses/>.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Faett_Piwik to newer
 * versions in the future. If you wish to customize Faett_Piwik for your
 * needs please refer to http://www.faett.net for more information.
 *
 * @category    Faett
 * @package     Faett_Piwik
 * @copyright   Copyright (c) 2009 <tw@faett.net> Tim Wagner
 * @license     <http://www.gnu.org/licenses/> 
 * 			    GNU General Public License (GPL 3)
 */
?>
<div>
<?php $refererType = $this->getAttributeValue('refererType'); ?>
<?php if ($refererType == 'directEntry') { ?>
	directEntry
<?php } elseif($refererType == 'searchEngine') { ?>
	from <a target="_blank" href="<?php echo $this->getAttributeValue('refererUrl'); ?>">
			<img title="<?php echo $this->getAttributeValue('refererName'); ?>"
			  	 src="<?php echo $this->getImageSrc('searchEngineIcon'); ?>"/>
		<?php echo $this->getAttributeValue('refererName'); ?>
	</a> with keywords 
	"<?php echo $this->getAttributeValue('keywords');  ?>"
<?php } else { ?>
	from <a target="_blank" href="<?php echo $this->getAttributeValue('refererUrl') ?>">
		<?php echo $this->getAttributeValue('refererName') ?>
	</a>
<?php } ?>
</div>